package com.defect.controller.basics;

import com.defect.bo.ResultBo;
import com.defect.service.basicsService.BTypeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("Btype")
public class BTypeController {
    @Resource
    private BTypeService typeService;

    /**
     * 查询所有类型名字
     * @return
     */
    @GetMapping
    public ResultBo selectTypeName() throws Exception {
        return new ResultBo("200","success",null,typeService.selectTypeName());
    }
}
